package com.ifnk.portaljava.hlyt.beans;

import java.io.Serializable;
import java.util.Date;
/**
 * <p>Title:角色与权限对应类</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2010</p>
 *
 * <p>Company: </p>
 *
 * @author  xiaoyan.zhang.hlyt@gmail.com
 * @version 1.0
 */
public class RolePermission implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7829744553262899924L;
	private int id;
	private Role role;
	private Module module;
	private String permission;
	private Date createtime;
	private String permissionString;
	private String createtimeString;

	// public String toString() {
	// return module.getName()+":"+permission;
	// }

	public int getId() {
		return id;
	}

	public String getCreatetimeString() {
		return createtimeString;
	}

	public void setCreatetimeString(String createtimeString) {
		this.createtimeString = createtimeString;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getPermissionString() {
		return permissionString;
	}

	public void setPermissionString(String permissionString) {
		this.permissionString = permissionString;
	}

}
